<h:layout tpl="_layout"/>
<style type="text/css">
.ui_form_error {color:red}
* {line-height:1.5}
.nav, .nav strong {border-bottom:1px #ccc solid; margin-bottom:20px; font-size:14px}
</style>
<div class="nav">
	1.环境检测 <strong>2.配置数据库</strong> 3.反馈
</div>
<f:form>
<table>
	<tr>
		<td>驱动</td>
		<td><f:select options=$drivers name="_new_[driver]" selected.list='mysql'/></td>
	</tr>

		<tr>
		<td>主机地址</td>
		<td><f:field size="30" name="_new_[host]" value_get="localhost"/></td>
	</tr>
		<tr>
		<td>端口</td>
		<td><f:field size="30" name="_new_[port]" value_get="3306"/></td>
	</tr>
		<tr>

		<td>数据库名</td>
		<td><f:field size="30" name="_new_[dbname]" value_get="" required=true/></td>
	</tr>
		<tr>
		<td>连接用户名</td>
		<td><f:field size="30" name="_new_[username]" value_get="root"/></td>
	</tr>
		<tr>
		<td>连接密码</td>

		<td><f:field size="30" name="_new_[password]" value_get=""/></td>
	</tr>
		<tr>
		<td>是否持久化（0|1）</td>
		<td><f:field size="30" name="_new_[persist]" value_get="0"/></td>
	</tr>
		<tr>
		<td>连接超时时间（s）</td>
		<td><f:field size="30" name="_new_[timeout]" value_get="30"/></td>

	</tr>
	<tr>
		<td>连接用的字符集</td>
		<td><f:field size="30" name="_new_[charset]" value_get="latin1"/></td>
	</tr>
	</tbody>
	<tr>
		<td colspan="2"><input type="submit" value="下一步"/> <input type="button" value="跳 过" onclick="window.location='<h:uri action=feedback/>'"/></td>
	</tr>
</table>
</f:form>

<div style="margin-top:30px">
	<address>当前安装程序只有在开发环境(dev)下才能运行，产品上线时，请在 index.php 中将开发环境设为 prod</address>
</div>

